/**
 * video buffer load event
 * Copyright (c) 2009 cmiscm.com
 * date of final modification : 2009. 11. 20 
*/
package com.cmiscm.videos.events
{
	import flash.events.Event;

	public class VideoBufferLoadEvent extends Event
	{
		public static const BUFFER_PRECENT:String = "buffer_precent";
		public static const FINISH_BUFFER_LOAD:String = "finish_buffer_load";
		public static const COMPLETE_DURATION:String = "complete_duration";
		
		public var percent:Number;
		public var duration:Number;
		
		public function VideoBufferLoadEvent(type:String, $percent:Number, $duration:Number=0, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			this.percent = $percent;
			this.duration = $duration;
		}
		
		override public function clone():Event
		{
			return new VideoBufferLoadEvent(this.type, this.percent, this.duration, this.bubbles, this.cancelable);
		}
		
	}
}